package com.taoxi.order.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.taoxi.common.annotation.Excel;
import com.taoxi.common.core.domain.BaseEntity;

/**
 * 订单管理对象 order
 * 
 * @author ruoyi
 * @date 2024-10-15
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 会员用户订单ID */
    private Long id;

    /** 会员用户ID */
    @Excel(name = "会员用户ID")
    private Long userId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String ordernum;

    /** 实付金额 */
    @Excel(name = "实付金额")
    private Long payment;

    /** 订单状态（0待支付1待发货2待收货3已完成4已取消）） */
    @Excel(name = "订单状态", readConverterExp = "0=待支付1待发货2待收货3已完成4已取消")
    private String status;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paytime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setOrdernum(String ordernum) 
    {
        this.ordernum = ordernum;
    }

    public String getOrdernum() 
    {
        return ordernum;
    }
    public void setPayment(Long payment) 
    {
        this.payment = payment;
    }

    public Long getPayment() 
    {
        return payment;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setPaytime(Date paytime) 
    {
        this.paytime = paytime;
    }

    public Date getPaytime() 
    {
        return paytime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("ordernum", getOrdernum())
            .append("payment", getPayment())
            .append("status", getStatus())
            .append("paytime", getPaytime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
